package com.blog.blogservice.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;

import javax.validation.constraints.NotBlank;

/**
 * 弹幕表(Barrage)实体类
 *
 * @author guanglin.ma
 * @since 2024-03-02 23:25:20
 */

@JsonInclude(value = JsonInclude.Include.NON_NULL)
@TableName(value = "barrage")
public class Barrage extends AdminClass {
    private static final long serialVersionUID = -83531472386147248L;

    public static final String FIELD_BARRAGE_ID = "barrageId";
    public static final String FIELD_MESSAGE = "message";

    @TableId(type = IdType.AUTO)
    private Integer barrageId;

//    内容
    @NotBlank
    private String message;


    public Integer getBarrageId() {
        return barrageId;
    }

    public void setBarrageId(Integer barrageId) {
        this.barrageId = barrageId;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }


}

